package cn.signalpha.modules.social.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 实体类
 *
 * @author signalpha
 */
@Data
@TableName("social_likes")
@ApiModel(value = "Likes对象", description = "点赞")
public class Likes implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
	@TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "点赞用户id")
    private Long userId;

	@ApiModelProperty(value = "获赞用户id")
	private Long toUserId;

    @ApiModelProperty(value = "目标id")
    private Long targetId;

    @ApiModelProperty(value = "目标类型：1主题 2评论")
    private Integer targetType;

}
